from django.shortcuts import render_to_response
from blindate.usuarios.form import RegistroForm
from django.template import RequestContext

def login(request):
	return render_to_response('index.html')

def registrar(request):
	if request.method == "POST":
		registro_form = RegistroForm(request.POST)
		if registro_form.is_valid():
			sucess = True
			usuario = registro_form.cleaned_data['usuario']
			clave = registro_form.cleaned_data['clave']
	else:
		registro_form = RegistroForm()
	ctx = {'registro_form':registro_form}
	return render_to_response('index.html', ctx, context_instance=RequestContext(request))
